package singleton;

/**
 * @Author：LJ
 * @Description：单例模式通用代码
 * @Date: 2017/11/26
 * @Modified By:
 */
public class SingletonGeneralCode {
    private final static SingletonGeneralCode SINGLETON_GENERAL_CODE = new SingletonGeneralCode();

    private SingletonGeneralCode() {
    }

    public static SingletonGeneralCode getInstance() {
        return SINGLETON_GENERAL_CODE;
    }

    //类中其他方法,尽量是static
    public static void doSomething() {
    }
}
